{[include file="../../../../library/view/templates/header.tpl"]}
<script src="{[$host]}js/order/orderList.js" type="text/javascript"></script>
{[include file="../../../../library/view/templates/tag/error.tpl"]}
<div class="BSpace10px"></div>
<div id="BMainTitleH1">{[$order_0001_Title]}</div>
<div class="BFence">
<div class="BSpace10px"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <div class="BFenceTopLeft">
            </div>
            <div class="BFenceTopRight">
            </div>
        </td>
    </tr>
    <tr>
        <td class="BFenceSideLine">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                        <td height="40">
                            <h3>{[$order_0001_AddNotice]}、{[$order_0001_Add]}{[$order_0001_Order]}</h3>
                            <input type="button" class="BGrayBtn" style="argin-left: 15px" value="{[$order_0001_Order]}{[$order_0001_Add]}" onclick="order_Add()"/>
                        </td>
                    </tr>
                </tbody>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <div class="BFenceBottomLeft">
            </div>
            <div class="BFenceBottomRight">
            </div>
        </td>
    </tr>
</table>
<div class="BSpace10px"></div>
<h2>{[$order_0001_Search]}</h2>
{[$order_0001_Notice]}
<div class="BTextAlignRight">
   {[$order_0001_NowSum]}{[$intSum]}{[$order_0001_Piece]}
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <div class="BFenceTopLeft">
            </div>
            <div class="BFenceTopRight">
            </div>
        </td>
    </tr>
    <tr>
        <td class="BFenceSideLine">
            <table class="BGrayLineTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="margin-bottom:0px">
                <tbody>
                    <tr>
                        <td class="BListLabel" width="25%">
                            {[$order_0001_Order]}ID
                        </td>
                        <td>
                            <input type="text" id="txtSupplierId" name="txtSupplierId" size="40" value="{[$arrSession.SupplierId]}"/>
                        </td>
                        </tr>
                        <tr>
                            <td class="BListLabel">
                                {[$order_0001_GoodsName]}
                            </td>
                            <td>
                                <input type="text" id="txtSupplierName" name="txtSupplierName" size="40" value="{[$arrSession.SupplierName]}"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="BListLabel">
                                {[$order_0001_CreateDate]}
                            </td>
                            <td>
                                <input type="text" id="txtCreateDateFrom" name="txtCreateDateFrom" size="11" maxlength="10" value="{[$arrSession.CreateDateFrom]}"/>
                                <img id="showCreateDateFrom" 
                                onclick="getCalendar('txtCreateDateFrom', 'showCreateDateFrom')" src="{[$host]}theme/commonTheme/img/calendar.gif" />
                                &nbsp;～
                                <input type="text" id="txtCreateDateTo" id="txtCreateDateTo" size="11" maxlength="10" value="{[$arrSession.CreateDateTo]}"/>
                                <img  id="showCreateDateTo" 
                                onclick="getCalendar('txtCreateDateTo', 'showCreateDateTo')" src="{[$host]}theme/commonTheme/img/calendar.gif" />&nbsp;&nbsp;{[$order_0001_Example]}）2010/04/10
                            </td>
                        </tr>
                    </tbody>
                </table>
                <div class="BSpace20px"></div>
                <div align="center">
                    <input type="button" class="BGrayBtn" value="{[$order_0001_Search]}" onClick="supplier_supplierSearchClick()" />&nbsp;
                    <input type="button" class="BGrayBtn" value="{[$order_0001_SearchConditionClear]}" onClick="supplier_supplierSearchClearClick()"/>
                </div>
                <div class="BSpace20px"></div>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="BPasingArea">
                    <tr>
                        <td width="65%" style="vertical-align:bottom;">
                            <span style="color: #000;">{[$order_0001_Notice1]}<br/>
                            {[$order_0001_Notice2]}<br/>
                            {[$order_0001_Notice3]}</span>
                        </td>
                        <td align="right">
                            <span id="orderHead">
                                {[include file="../../../../library/view/templates/tag/order.tpl"]}
                            </span>
                            <span id="pageHead">
                                {[include file="../../../../library/view/templates/tag/pager.tpl"]}
                            </span>
                        </td>
                    </tr>
                </table>
                <table class="BListTable" border="0" cellspacing="0" cellpadding="0" width="100%" id="dataTable">
                    <tbody>
                        <tr class="BTextAlignCenter" id="trHeader_orderHead">
                            <td class="BListTableHeader" style="width: 37px">
                                No.
                            </td>
                            <td class="BListLabel" style="width: 95px" id="A.SUPPLIER_ID" onclick="initOrder('orderHead');">
                                {[$order_0001_Order]}ID
                                {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                            </td>
                            <td class="BListLabel" style="width: 85px" id="A.PROV_CODE" onclick="initOrder('orderHead');">
                                {[$order_0001_SupplierName]}
                                {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                            </td>
                            <td class="BListTableHeader" style="width: 94px">
                                {[$order_0001_GoodsName]}
                            </td>
                            <td class="BListLabel" style="width:85px " id="A.STATUS" onclick="initOrder('orderHead');">
                               价格
                                {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                            </td>
                            <td class="BListLabel" style="width: 120px" id="A.LAST_ORDER_DATE" onclick="initOrder('orderHead');">
                                {[$order_0001_CreateDate]}
                                {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                            </td>
                            <td class="BListLabel" style="width: 300px" id="A.ORDER_COUNT" onclick="initOrder('orderHead');">
                                订单状态
                                {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                            </td>
                            <td class="BListTableHeader" style="width: 113px">
                                {[$order_0001_Edit]}
                            </td>
                        </tr>
                        {[foreach from=$arrSearchData key=key item=item]}
                        <tr {[if $key%2 == 1]}class="BListTableGray"{[/if]}>
                            <td align="right">
                                {[$fromRecord+$key]}
                            </td>
                            <td>
                                <a href="{[$host]}order/orderView/index/OrderNo/1">{[$item.SUPPLIER_ID]}</a>
                            </td>
                            <td>
                                <a target="_blank" href="{[$host]}supplier/supplierView/index/SupplierNo/1">{[$item.SUPPLIER_NAME]}</a>
                            </td>
                            <td align="center">
                                <a target="_blank" href="{[$host]}index.php/goods/goodsDetails/index/goodsNo/1">{[$item.SUPPLIER_NAME]}(3)</a>
                            </td>
                            <td align="right">
                                200
                            </td>
                            
                            <td align="right">
                                {[$item.LAST_ORDER_DATE]}
                            </td>
                            <td align="center">
                            {[if $key%2 == 1]}
                                   进行中
                                {[else]}
                                    进行完了
                                {[/if]}
                            </td>
                            <td align="center">
                               <input type="button" class="BGrayBtn" value="{[$order_0001_Edit]}" onclick="order_Edit()"/>
                            </td>
                        </tr>
                        {[/foreach]}
                    </tbody>
                </table>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="BPasingArea">
                    <tr>
                        <td align="right">
                            <span id="pageFoot">
                                {[assign var="pageSizeShow" value=false]}
                                {[include file="../../../../library/view/templates/tag/pager.tpl"]}
                            </span>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <div class="BFenceBottomLeft">
                </div>
                <div class="BFenceBottomRight">
                </div>
            </td>
        </tr>
</table>
</div>
<div class="BSpace20px"></div>
<h2>{[$order_0001_DataDownload]}</h2>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <div class="BFenceTopLeft">
            </div>
            <div class="BFenceTopRight">
            </div>
        </td>
    </tr>
    <tr>
        <td class="BFenceSideLine">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                        <td height="40">
                        <form id="supplierListForm" name="supplierListForm">
                            <select style="width: 200px; margin-left: 20px" id="Select2">
                                <option selected>订单数据全项目</option>
                            </select>
                            </form>
                            </td>
                        <td height="40" align="left">
                            <input style="argin-left: 15px" class="BGrayBtn" value="{[$order_0001_Download]}" onclick="supplier_downloadFile()" type="button"/>
                        </td>
                    </tr>
                </tbody>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <div class="BFenceBottomLeft">
            </div>
            <div class="BFenceBottomRight">
            </div>
        </td>
    </tr>
</table>
<div class="BSpace20px"></div>
{[include file="../../../../library/view/templates/footer.tpl"]}